
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="robots" content="NONE,NOARCHIVE">
  <title>AttributeError at /rest/unit</title>
  <style type="text/css">
    html * { padding:0; margin:0; }
    body * { padding:10px 20px; }
    body * * { padding:0; }
    body { font:small sans-serif; }
    body>div { border-bottom:1px solid #ddd; }
    h1 { font-weight:normal; }
    h2 { margin-bottom:.8em; }
    h2 span { font-size:80%; color:#666; font-weight:normal; }
    h3 { margin:1em 0 .5em 0; }
    h4 { margin:0 0 .5em 0; font-weight: normal; }
    table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
    tbody td, tbody th { vertical-align:top; padding:2px 3px; }
    thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }
    tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
    table.vars { margin:5px 0 2px 40px; }
    table.vars td, table.req td { font-family:monospace; }
    table td.code { width:100%; }
    table td.code div { overflow:hidden; }
    table.source th { color:#666; }
    table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
    ul.traceback { list-style-type:none; }
    ul.traceback li.frame { margin-bottom:1em; }
    div.context { margin: 10px 0; }
    div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
    div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
    div.context ol.context-line li { color:black; background-color:#ccc; }
    div.context ol.context-line li span { float: right; }
    div.commands { margin-left: 40px; }
    div.commands a { color:black; text-decoration:none; }
    #summary { background: #ffc; }
    #summary h2 { font-weight: normal; color: #666; }
    #explanation { background:#eee; }
    #template, #template-not-exist { background:#f6f6f6; }
    #template-not-exist ul { margin: 0 0 0 20px; }
    #unicode-hint { background:#eee; }
    #traceback { background:#eee; }
    #requestinfo { background:#f6f6f6; padding-left:120px; }
    #summary table { border:none; background:transparent; }
    #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
    #requestinfo h3 { margin-bottom:-1em; }
    .error { background: #ffc; }
    .specific { color:#cc3300; font-weight:bold; }
    h2 span.commands { font-size:.7em;}
    span.commands a:link {color:#5E5694;}
    pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; }
  </style>
  <script type="text/javascript">
  //<!--
    function getElementsByClassName(oElm, strTagName, strClassName){
        // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
        var arrElements = (strTagName == "*" && document.all)? document.all :
        oElm.getElementsByTagName(strTagName);
        var arrReturnElements = new Array();
        strClassName = strClassName.replace(/\-/g, "\-");
        var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
        var oElement;
        for(var i=0; i<arrElements.length; i++){
            oElement = arrElements[i];
            if(oRegExp.test(oElement.className)){
                arrReturnElements.push(oElement);
            }
        }
        return (arrReturnElements)
    }
    function hideAll(elems) {
      for (var e = 0; e < elems.length; e++) {
        elems[e].style.display = 'none';
      }
    }
    window.onload = function() {
      hideAll(getElementsByClassName(document, 'table', 'vars'));
      hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
      hideAll(getElementsByClassName(document, 'ol', 'post-context'));
      hideAll(getElementsByClassName(document, 'div', 'pastebin'));
    }
    function toggle() {
      for (var i = 0; i < arguments.length; i++) {
        var e = document.getElementById(arguments[i]);
        if (e) {
          e.style.display = e.style.display == 'none' ? 'block' : 'none';
        }
      }
      return false;
    }
    function varToggle(link, id) {
      toggle('v' + id);
      var s = link.getElementsByTagName('span')[0];
      var uarr = String.fromCharCode(0x25b6);
      var darr = String.fromCharCode(0x25bc);
      s.innerHTML = s.innerHTML == uarr ? darr : uarr;
      return false;
    }
    function switchPastebinFriendly(link) {
      s1 = "Switch to copy-and-paste view";
      s2 = "Switch back to interactive view";
      link.innerHTML = link.innerHTML == s1 ? s2 : s1;
      toggle('browserTraceback', 'pastebinTraceback');
      return false;
    }
    //-->
  </script>
</head>
<body>
<div id="summary">
  <h1>AttributeError at /rest/unit</h1>
  <pre class="exception_value">&#39;module&#39; object has no attribute &#39;now&#39;</pre>
  <table class="meta">
    <tr>
      <th>Request Method:</th>
      <td>POST</td>
    </tr>
    <tr>
      <th>Request URL:</th>
      <td>http://10.2.0.159:8000/rest/unit</td>
    </tr>
    <tr>
      <th>Exception Type:</th>
      <td>AttributeError</td>
    </tr>
    <tr>
      <th>Exception Value:</th>
      <td><pre>&#39;module&#39; object has no attribute &#39;now&#39;</pre></td>
    </tr>
    <tr>
      <th>Exception Location:</th>
      <td>/home/sol/i-dev/pythonstrike/ps-site/main/rest.py in push_unit, line 128</td>
    </tr>
    <tr>
      <th>Python Executable:</th>
      <td>/usr/bin/python</td>
    </tr>
    <tr>
      <th>Python Version:</th>
      <td>2.6.2</td>
    </tr>
    <tr>
      <th>Python Path:</th>
      <td>[&#39;/home/sol/i-dev/pythonstrike/ps-site&#39;, &#39;/usr/local/lib/python2.6/dist-packages/brian-1.2.0-py2.6.egg&#39;, &#39;/usr/local/lib/python2.6/dist-packages/quantities-0.7.0-py2.6.egg&#39;, &#39;/usr/local/lib/python2.6/dist-packages/Unum-4.1.0-py2.6.egg&#39;, &#39;/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-x86_64.egg&#39;, &#39;/usr/local/lib/python2.6/dist-packages/recaptcha_client-1.0.5-py2.6.egg&#39;, &#39;/usr/local/lib/python2.6/dist-packages/django_simple_captcha-0.1.5-py2.6.egg&#39;, &#39;/usr/local/lib/python2.6/dist-packages/PyBrain-0.3-py2.6.egg&#39;, &#39;/home/sol/i-dev/pythonstrike/ps-site&#39;, &#39;/usr/lib/python2.6&#39;, &#39;/usr/lib/python2.6/dist-packages&#39;, &#39;/usr/lib/python2.6/dist-packages/PIL&#39;, &#39;/usr/lib/python2.6/dist-packages/gst-0.10&#39;, &#39;/usr/lib/python2.6/dist-packages/gtk-2.0&#39;, &#39;/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode&#39;, &#39;/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode&#39;, &#39;/usr/lib/python2.6/lib-dynload&#39;, &#39;/usr/lib/python2.6/lib-old&#39;, &#39;/usr/lib/python2.6/lib-tk&#39;, &#39;/usr/lib/python2.6/plat-linux2&#39;, &#39;/usr/local/lib/python2.6/dist-packages&#39;, &#39;/var/lib/python-support/python2.6&#39;, &#39;/var/lib/python-support/python2.6/gtk-2.0&#39;]</td>
    </tr>
    <tr>
      <th>Server time:</th>
      <td>Wed, 5 May 2010 13:23:00 +0000</td>
    </tr>
  </table>
</div>



<div id="traceback">
  <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch to copy-and-paste view</a></span></h2>
  
  <div id="browserTraceback">
    <ul class="traceback">
      
        <li class="frame">
          <code>/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py</code> in <code>get_response</code>

          
            <div class="context" id="c46469200">
              
                <ol start="94" class="pre-context" id="pre46469200"><li onclick="toggle('pre46469200', 'post46469200')">                # Apply view middleware</li><li onclick="toggle('pre46469200', 'post46469200')">                for middleware_method in self._view_middleware:</li><li onclick="toggle('pre46469200', 'post46469200')">                    response = middleware_method(request, callback, callback_args, callback_kwargs)</li><li onclick="toggle('pre46469200', 'post46469200')">                    if response:</li><li onclick="toggle('pre46469200', 'post46469200')">                        return response</li><li onclick="toggle('pre46469200', 'post46469200')"></li><li onclick="toggle('pre46469200', 'post46469200')">                try:</li></ol>
              
              <ol start="101" class="context-line"><li onclick="toggle('pre46469200', 'post46469200')">                    response = callback(request, *callback_args, **callback_kwargs) <span>...</span></li></ol>
              
                <ol start='102' class="post-context" id="post46469200"><li onclick="toggle('pre46469200', 'post46469200')">                except Exception, e:</li><li onclick="toggle('pre46469200', 'post46469200')">                    # If the view raised an exception, run it through exception</li><li onclick="toggle('pre46469200', 'post46469200')">                    # middleware, and if the exception middleware returns a</li><li onclick="toggle('pre46469200', 'post46469200')">                    # response, use that. Otherwise, reraise the exception.</li><li onclick="toggle('pre46469200', 'post46469200')">                    for middleware_method in self._exception_middleware:</li><li onclick="toggle('pre46469200', 'post46469200')">                        response = middleware_method(request, e)</li></ol>
              
            </div>
          

          
            <div class="commands">
                <a href="#" onclick="return varToggle(this, '46469200')"><span>&#x25b6;</span> Local vars</a>
            </div>
            <table class="vars" id="v46469200">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>callback</td>
                    <td class="code"><div>&lt;function rest_unit at 0x2a9f0c8&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>callback_args</td>
                    <td class="code"><div>()</div></td>
                  </tr>
                
                  <tr>
                    <td>callback_kwargs</td>
                    <td class="code"><div>{}</div></td>
                  </tr>
                
                  <tr>
                    <td>e</td>
                    <td class="code"><div>AttributeError(&quot;&#39;module&#39; object has no attribute &#39;now&#39;&quot;,)</div></td>
                  </tr>
                
                  <tr>
                    <td>exc_info</td>
                    <td class="code"><div>(&lt;type &#39;exceptions.AttributeError&#39;&gt;,
 AttributeError(&quot;&#39;module&#39; object has no attribute &#39;now&#39;&quot;,),
 &lt;traceback object at 0x2c51050&gt;)</div></td>
                  </tr>
                
                  <tr>
                    <td>exceptions</td>
                    <td class="code"><div>&lt;module &#39;django.core.exceptions&#39; from &#39;/usr/local/lib/python2.6/dist-packages/django/core/exceptions.pyc&#39;&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>middleware_method</td>
                    <td class="code"><div>&lt;bound method AuthenticationMiddleware.process_request of &lt;django.contrib.auth.middleware.AuthenticationMiddleware object at 0x2a23cd0&gt;&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>receivers</td>
                    <td class="code"><div>[(&lt;function _rollback_on_exception at 0x2445de8&gt;, None)]</div></td>
                  </tr>
                
                  <tr>
                    <td>request</td>
                    <td class="code"><div>&lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {u&#39;nid&#39;: [u&#39;6&#39;], u&#39;key&#39;: [u&#39;53739483-0fa0-49ff-ace0-91dcf2d1207c-8dbd84dc-7c4e-4b24-aa69-f9d60e7a1629&#39;], u&#39;upload&#39;: [u&quot;(ilib.serialization\nsunit\np0\n(dp1\nS&#39;meta&#39;\np2\nS&#39;653699 20:54:00 50.4692440525\\n653699 20:58:00 51.1263615746\\n653699 21:02:00 49.7897009031\\n653699 21:06:00 50.6371469789\\n653699 21:10:00 51.1079817871\\n653699 21:14:00 50.7969505128\\n653699 21:18:00 51.6366114117\\n653699 21:22:00 50.0923689546\\n653699 21:26:00 50.901235933\\n653699 21:30:00 51.6721401029\\n&#39;\np3\nsS&#39;link&#39;\np4\nVimat\np5\nsS&#39;network&#39;\np6\nV\np7\nsS&#39;fitness&#39;\np8\nF0.0\nsS&#39;ticket&#39;\np9\nL25L\nsS&#39;id&#39;\np10\nL33804L\nsb.&quot;]}&gt;,
COOKIES:{},
META:{&#39;CONTENT_LENGTH&#39;: &#39;696&#39;,
 &#39;CONTENT_TYPE&#39;: &#39;application/x-www-form-urlencoded&#39;,
 &#39;DBUS_SESSION_BUS_ADDRESS&#39;: &#39;unix:abstract=/tmp/dbus-EUTXVlyY4p,guid=b24e245dc2ad422ab77321344be15566&#39;,
 &#39;DESKTOP_SESSION&#39;: &#39;default&#39;,
 &#39;DISPLAY&#39;: &#39;:0.0&#39;,
 &#39;DJANGO_SETTINGS_MODULE&#39;: &#39;ps-site.settings&#39;,
 &#39;GATEWAY_INTERFACE&#39;: &#39;CGI/1.1&#39;,
 &#39;GDMSESSION&#39;: &#39;default&#39;,
 &#39;GDM_LANG&#39;: &#39;en_US.UTF-8&#39;,
 &#39;GDM_XSERVER_LOCATION&#39;: &#39;local&#39;,
 &#39;GNOME_DESKTOP_SESSION_ID&#39;: &#39;this-is-deprecated&#39;,
 &#39;GNOME_KEYRING_PID&#39;: &#39;3572&#39;,
 &#39;GNOME_KEYRING_SOCKET&#39;: &#39;/tmp/keyring-qVXMpf/socket&#39;,
 &#39;GPG_AGENT_INFO&#39;: &#39;/tmp/seahorse-QiTriV/S.gpg-agent:3750:1&#39;,
 &#39;GTK_MODULES&#39;: &#39;canberra-gtk-module&#39;,
 &#39;HOME&#39;: &#39;/home/sol&#39;,
 &#39;HTTP_ACCEPT&#39;: &#39;text/plain&#39;,
 &#39;HTTP_ACCEPT_ENCODING&#39;: &#39;identity&#39;,
 &#39;HTTP_HOST&#39;: &#39;10.2.0.159:8000&#39;,
 &#39;LANG&#39;: &#39;en_US.UTF-8&#39;,
 &#39;LD_LIBRARY_PATH&#39;: &#39;/media/storage/bin/eclipse-python/jre/lib/i386/client::/media/storage/bin/eclipse-python/jre/lib/i386::/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons&#39;,
 &#39;LOGNAME&#39;: &#39;sol&#39;,
 &#39;MOZILLA_FIVE_HOME&#39;: &#39;/usr/lib/xulrunner-addons&#39;,
 &#39;NLSPATH&#39;: &#39;/usr/dt/lib/nls/msg/%L/%N.cat&#39;,
 &#39;ORBIT_SOCKETDIR&#39;: &#39;/tmp/orbit-sol&#39;,
 &#39;PATH&#39;: &#39;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games&#39;,
 &#39;PATH_INFO&#39;: u&#39;/rest/unit&#39;,
 &#39;PWD&#39;: &#39;/home/sol&#39;,
 &#39;PYTHONPATH&#39;: &#39;/home/sol/i-dev/pythonstrike/ps-site:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode:/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages&#39;,
 &#39;QUERY_STRING&#39;: &#39;&#39;,
 &#39;REMOTE_ADDR&#39;: &#39;10.2.0.159&#39;,
 &#39;REMOTE_HOST&#39;: &#39;&#39;,
 &#39;REQUEST_METHOD&#39;: &#39;POST&#39;,
 &#39;SCRIPT_NAME&#39;: u&#39;&#39;,
 &#39;SERVER_NAME&#39;: &#39;relay&#39;,
 &#39;SERVER_PORT&#39;: &#39;8000&#39;,
 &#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.1&#39;,
 &#39;SERVER_SOFTWARE&#39;: &#39;WSGIServer/0.1 Python/2.6.2&#39;,
 &#39;SESSION_MANAGER&#39;: &#39;local/relay:/tmp/.ICE-unix/3592&#39;,
 &#39;SHELL&#39;: &#39;/bin/bash&#39;,
 &#39;SSH_AGENT_PID&#39;: &#39;3727&#39;,
 &#39;SSH_AUTH_SOCK&#39;: &#39;/tmp/ssh-GEvcaV3592/agent.3592&#39;,
 &#39;TZ&#39;: &#39;Russia/Moscow&#39;,
 &#39;USER&#39;: &#39;sol&#39;,
 &#39;USERNAME&#39;: &#39;sol&#39;,
 &#39;WINDOWPATH&#39;: &#39;7&#39;,
 &#39;XAUTHORITY&#39;: &#39;/home/sol/.Xauthority&#39;,
 &#39;XDG_DATA_DIRS&#39;: &#39;/usr/local/share/:/usr/share/:/usr/share/gdm/&#39;,
 &#39;XDG_SESSION_COOKIE&#39;: &#39;49df87b39767a905dc4304d54aa7400f-1273058661.221270-411781267&#39;,
 &#39;XFILESEARCHPATH&#39;: &#39;/usr/dt/app-defaults/%L/Dt&#39;,
 &#39;wsgi.errors&#39;: &lt;open file &#39;&lt;stderr&gt;&#39;, mode &#39;w&#39; at 0x7f41f15e1140&gt;,
 &#39;wsgi.file_wrapper&#39;: &lt;class &#39;django.core.servers.basehttp.FileWrapper&#39;&gt;,
 &#39;wsgi.input&#39;: &lt;socket._fileobject object at 0x2701c08&gt;,
 &#39;wsgi.multiprocess&#39;: False,
 &#39;wsgi.multithread&#39;: True,
 &#39;wsgi.run_once&#39;: False,
 &#39;wsgi.url_scheme&#39;: &#39;http&#39;,
 &#39;wsgi.version&#39;: (1, 0)}&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>resolver</td>
                    <td class="code"><div>&lt;RegexURLResolver urls (None:None) ^/&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>response</td>
                    <td class="code"><div>None</div></td>
                  </tr>
                
                  <tr>
                    <td>self</td>
                    <td class="code"><div>&lt;django.core.handlers.wsgi.WSGIHandler object at 0x26ff550&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>settings</td>
                    <td class="code"><div>&lt;django.conf.LazySettings object at 0x7f41f1489190&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>urlconf</td>
                    <td class="code"><div>&#39;urls&#39;</div></td>
                  </tr>
                
                  <tr>
                    <td>urlresolvers</td>
                    <td class="code"><div>&lt;module &#39;django.core.urlresolvers&#39; from &#39;/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.pyc&#39;&gt;</div></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
        <li class="frame">
          <code>/home/sol/i-dev/pythonstrike/ps-site/main/rest.py</code> in <code>rest_unit</code>

          
            <div class="context" id="c46469632">
              
                <ol start="40" class="pre-context" id="pre46469632"><li onclick="toggle('pre46469632', 'post46469632')">        node = get_node(request.POST[&#39;nid&#39;], request.POST[&#39;key&#39;])</li><li onclick="toggle('pre46469632', 'post46469632')">        if not node:</li><li onclick="toggle('pre46469632', 'post46469632')">            HttpResponse.status_code=500</li><li onclick="toggle('pre46469632', 'post46469632')">            return HttpResponse(&#39;key error&#39;)</li><li onclick="toggle('pre46469632', 'post46469632')">        #fetch upload</li><li onclick="toggle('pre46469632', 'post46469632')">        if request.POST[&#39;upload&#39;]!=u&#39;None&#39;:</li><li onclick="toggle('pre46469632', 'post46469632')">            runit = pickle.loads(request.POST[&#39;upload&#39;].encode(&#39;ascii&#39;))</li></ol>
              
              <ol start="47" class="context-line"><li onclick="toggle('pre46469632', 'post46469632')">            push_unit(runit, node) <span>...</span></li></ol>
              
                <ol start='48' class="post-context" id="post46469632"><li onclick="toggle('pre46469632', 'post46469632')">        #submit new task to node</li><li onclick="toggle('pre46469632', 'post46469632')">        unit = pop_unit()</li><li onclick="toggle('pre46469632', 'post46469632')">        if not unit:</li><li onclick="toggle('pre46469632', 'post46469632')">            HttpResponse.status_code=404</li><li onclick="toggle('pre46469632', 'post46469632')">            return HttpResponse(&#39;nothing to process&#39;)</li><li onclick="toggle('pre46469632', 'post46469632')">        return HttpResponse(pickle.dumps(unit))</li></ol>
              
            </div>
          

          
            <div class="commands">
                <a href="#" onclick="return varToggle(this, '46469632')"><span>&#x25b6;</span> Local vars</a>
            </div>
            <table class="vars" id="v46469632">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>node</td>
                    <td class="code"><div>&lt;node: id:6&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>request</td>
                    <td class="code"><div>&lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {u&#39;nid&#39;: [u&#39;6&#39;], u&#39;key&#39;: [u&#39;53739483-0fa0-49ff-ace0-91dcf2d1207c-8dbd84dc-7c4e-4b24-aa69-f9d60e7a1629&#39;], u&#39;upload&#39;: [u&quot;(ilib.serialization\nsunit\np0\n(dp1\nS&#39;meta&#39;\np2\nS&#39;653699 20:54:00 50.4692440525\\n653699 20:58:00 51.1263615746\\n653699 21:02:00 49.7897009031\\n653699 21:06:00 50.6371469789\\n653699 21:10:00 51.1079817871\\n653699 21:14:00 50.7969505128\\n653699 21:18:00 51.6366114117\\n653699 21:22:00 50.0923689546\\n653699 21:26:00 50.901235933\\n653699 21:30:00 51.6721401029\\n&#39;\np3\nsS&#39;link&#39;\np4\nVimat\np5\nsS&#39;network&#39;\np6\nV\np7\nsS&#39;fitness&#39;\np8\nF0.0\nsS&#39;ticket&#39;\np9\nL25L\nsS&#39;id&#39;\np10\nL33804L\nsb.&quot;]}&gt;,
COOKIES:{},
META:{&#39;CONTENT_LENGTH&#39;: &#39;696&#39;,
 &#39;CONTENT_TYPE&#39;: &#39;application/x-www-form-urlencoded&#39;,
 &#39;DBUS_SESSION_BUS_ADDRESS&#39;: &#39;unix:abstract=/tmp/dbus-EUTXVlyY4p,guid=b24e245dc2ad422ab77321344be15566&#39;,
 &#39;DESKTOP_SESSION&#39;: &#39;default&#39;,
 &#39;DISPLAY&#39;: &#39;:0.0&#39;,
 &#39;DJANGO_SETTINGS_MODULE&#39;: &#39;ps-site.settings&#39;,
 &#39;GATEWAY_INTERFACE&#39;: &#39;CGI/1.1&#39;,
 &#39;GDMSESSION&#39;: &#39;default&#39;,
 &#39;GDM_LANG&#39;: &#39;en_US.UTF-8&#39;,
 &#39;GDM_XSERVER_LOCATION&#39;: &#39;local&#39;,
 &#39;GNOME_DESKTOP_SESSION_ID&#39;: &#39;this-is-deprecated&#39;,
 &#39;GNOME_KEYRING_PID&#39;: &#39;3572&#39;,
 &#39;GNOME_KEYRING_SOCKET&#39;: &#39;/tmp/keyring-qVXMpf/socket&#39;,
 &#39;GPG_AGENT_INFO&#39;: &#39;/tmp/seahorse-QiTriV/S.gpg-agent:3750:1&#39;,
 &#39;GTK_MODULES&#39;: &#39;canberra-gtk-module&#39;,
 &#39;HOME&#39;: &#39;/home/sol&#39;,
 &#39;HTTP_ACCEPT&#39;: &#39;text/plain&#39;,
 &#39;HTTP_ACCEPT_ENCODING&#39;: &#39;identity&#39;,
 &#39;HTTP_HOST&#39;: &#39;10.2.0.159:8000&#39;,
 &#39;LANG&#39;: &#39;en_US.UTF-8&#39;,
 &#39;LD_LIBRARY_PATH&#39;: &#39;/media/storage/bin/eclipse-python/jre/lib/i386/client::/media/storage/bin/eclipse-python/jre/lib/i386::/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons&#39;,
 &#39;LOGNAME&#39;: &#39;sol&#39;,
 &#39;MOZILLA_FIVE_HOME&#39;: &#39;/usr/lib/xulrunner-addons&#39;,
 &#39;NLSPATH&#39;: &#39;/usr/dt/lib/nls/msg/%L/%N.cat&#39;,
 &#39;ORBIT_SOCKETDIR&#39;: &#39;/tmp/orbit-sol&#39;,
 &#39;PATH&#39;: &#39;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games&#39;,
 &#39;PATH_INFO&#39;: u&#39;/rest/unit&#39;,
 &#39;PWD&#39;: &#39;/home/sol&#39;,
 &#39;PYTHONPATH&#39;: &#39;/home/sol/i-dev/pythonstrike/ps-site:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode:/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages&#39;,
 &#39;QUERY_STRING&#39;: &#39;&#39;,
 &#39;REMOTE_ADDR&#39;: &#39;10.2.0.159&#39;,
 &#39;REMOTE_HOST&#39;: &#39;&#39;,
 &#39;REQUEST_METHOD&#39;: &#39;POST&#39;,
 &#39;SCRIPT_NAME&#39;: u&#39;&#39;,
 &#39;SERVER_NAME&#39;: &#39;relay&#39;,
 &#39;SERVER_PORT&#39;: &#39;8000&#39;,
 &#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.1&#39;,
 &#39;SERVER_SOFTWARE&#39;: &#39;WSGIServer/0.1 Python/2.6.2&#39;,
 &#39;SESSION_MANAGER&#39;: &#39;local/relay:/tmp/.ICE-unix/3592&#39;,
 &#39;SHELL&#39;: &#39;/bin/bash&#39;,
 &#39;SSH_AGENT_PID&#39;: &#39;3727&#39;,
 &#39;SSH_AUTH_SOCK&#39;: &#39;/tmp/ssh-GEvcaV3592/agent.3592&#39;,
 &#39;TZ&#39;: &#39;Russia/Moscow&#39;,
 &#39;USER&#39;: &#39;sol&#39;,
 &#39;USERNAME&#39;: &#39;sol&#39;,
 &#39;WINDOWPATH&#39;: &#39;7&#39;,
 &#39;XAUTHORITY&#39;: &#39;/home/sol/.Xauthority&#39;,
 &#39;XDG_DATA_DIRS&#39;: &#39;/usr/local/share/:/usr/share/:/usr/share/gdm/&#39;,
 &#39;XDG_SESSION_COOKIE&#39;: &#39;49df87b39767a905dc4304d54aa7400f-1273058661.221270-411781267&#39;,
 &#39;XFILESEARCHPATH&#39;: &#39;/usr/dt/app-defaults/%L/Dt&#39;,
 &#39;wsgi.errors&#39;: &lt;open file &#39;&lt;stderr&gt;&#39;, mode &#39;w&#39; at 0x7f41f15e1140&gt;,
 &#39;wsgi.file_wrapper&#39;: &lt;class &#39;django.core.servers.basehttp.FileWrapper&#39;&gt;,
 &#39;wsgi.input&#39;: &lt;socket._fileobject object at 0x2701c08&gt;,
 &#39;wsgi.multiprocess&#39;: False,
 &#39;wsgi.multithread&#39;: True,
 &#39;wsgi.run_once&#39;: False,
 &#39;wsgi.url_scheme&#39;: &#39;http&#39;,
 &#39;wsgi.version&#39;: (1, 0)}&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>runit</td>
                    <td class="code"><div>&lt;lib.serialization.sunit instance at 0x2c62f80&gt;</div></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
        <li class="frame">
          <code>/home/sol/i-dev/pythonstrike/ps-site/main/rest.py</code> in <code>push_unit</code>

          
            <div class="context" id="c46469704">
              
                <ol start="121" class="pre-context" id="pre46469704"><li onclick="toggle('pre46469704', 'post46469704')">    #except:</li><li onclick="toggle('pre46469704', 'post46469704')">    #    return None</li><li onclick="toggle('pre46469704', 'post46469704')"></li><li onclick="toggle('pre46469704', 'post46469704')">def push_unit(runit, node):</li><li onclick="toggle('pre46469704', 'post46469704')">    print &#39;pushing&#39;</li><li onclick="toggle('pre46469704', 'post46469704')">    unit = models.unit.objects.get(id=runit.id)</li><li onclick="toggle('pre46469704', 'post46469704')">    #calculating flops</li></ol>
              
              <ol start="128" class="context-line"><li onclick="toggle('pre46469704', 'post46469704')">    dt = datetime.now() - unit.creation_date <span>...</span></li></ol>
              
                <ol start='129' class="post-context" id="post46469704"><li onclick="toggle('pre46469704', 'post46469704')">    flops = dt.seconds * node.cpu_power</li><li onclick="toggle('pre46469704', 'post46469704')">    print &#39;ok flops&#39;</li><li onclick="toggle('pre46469704', 'post46469704')">    node.cpu_flops += cpu_flops</li><li onclick="toggle('pre46469704', 'post46469704')">    node.save()</li><li onclick="toggle('pre46469704', 'post46469704')"></li><li onclick="toggle('pre46469704', 'post46469704')">    node.person.cpu_flops += cpu_flops</li></ol>
              
            </div>
          

          
            <div class="commands">
                <a href="#" onclick="return varToggle(this, '46469704')"><span>&#x25b6;</span> Local vars</a>
            </div>
            <table class="vars" id="v46469704">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>node</td>
                    <td class="code"><div>&lt;node: id:6&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>runit</td>
                    <td class="code"><div>&lt;lib.serialization.sunit instance at 0x2c62f80&gt;</div></td>
                  </tr>
                
                  <tr>
                    <td>unit</td>
                    <td class="code"><div>&lt;unit: id:33804&gt;</div></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
    </ul>
  </div>
  
  <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
  <div id="pastebinTraceback" class="pastebin">
    <input type="hidden" name="language" value="PythonConsole">
    <input type="hidden" name="title" value="AttributeError at /rest/unit">
    <input type="hidden" name="source" value="Django Dpaste Agent">
    <input type="hidden" name="poster" value="Django">
    <textarea name="content" id="traceback_area" cols="140" rows="25">
Environment:

Request Method: POST
Request URL: http://10.2.0.159:8000/rest/unit
Django Version: 1.2 beta 1
Python Version: 2.6.2
Installed Applications:
[&#39;django.contrib.auth&#39;,
 &#39;django.contrib.admin&#39;,
 &#39;django.contrib.contenttypes&#39;,
 &#39;django.contrib.sessions&#39;,
 &#39;django.contrib.sites&#39;,
 &#39;main&#39;,
 &#39;captcha&#39;]
Installed Middleware:
(&#39;django.middleware.common.CommonMiddleware&#39;,
 &#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
 &#39;django.contrib.auth.middleware.AuthenticationMiddleware&#39;)


Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
  101.                     response = callback(request, *callback_args, **callback_kwargs)
File "/home/sol/i-dev/pythonstrike/ps-site/main/rest.py" in rest_unit
  47.             push_unit(runit, node)
File "/home/sol/i-dev/pythonstrike/ps-site/main/rest.py" in push_unit
  128.     dt = datetime.now() - unit.creation_date

Exception Type: AttributeError at /rest/unit
Exception Value: &#39;module&#39; object has no attribute &#39;now&#39;
</textarea>
  <br><br>
  <input type="submit" value="Share this traceback on a public Web site">
  </div>
</form>
</div>

<div id="requestinfo">
  <h2>Request information</h2>

  <h3 id="get-info">GET</h3>
  
    <p>No GET data</p>
  

  <h3 id="post-info">POST</h3>
  
    <table class="req">
      <thead>
        <tr>
          <th>Variable</th>
          <th>Value</th>
        </tr>
      </thead>
      <tbody>
        
          <tr>
            <td>nid</td>
            <td class="code"><div>u&#39;6&#39;</div></td>
          </tr>
        
          <tr>
            <td>key</td>
            <td class="code"><div>u&#39;53739483-0fa0-49ff-ace0-91dcf2d1207c-8dbd84dc-7c4e-4b24-aa69-f9d60e7a1629&#39;</div></td>
          </tr>
        
          <tr>
            <td>upload</td>
            <td class="code"><div>u&quot;(ilib.serialization\nsunit\np0\n(dp1\nS&#39;meta&#39;\np2\nS&#39;653699 20:54:00 50.4692440525\\n653699 20:58:00 51.1263615746\\n653699 21:02:00 49.7897009031\\n653699 21:06:00 50.6371469789\\n653699 21:10:00 51.1079817871\\n653699 21:14:00 50.7969505128\\n653699 21:18:00 51.6366114117\\n653699 21:22:00 50.0923689546\\n653699 21:26:00 50.901235933\\n653699 21:30:00 51.6721401029\\n&#39;\np3\nsS&#39;link&#39;\np4\nVimat\np5\nsS&#39;network&#39;\np6\nV\np7\nsS&#39;fitness&#39;\np8\nF0.0\nsS&#39;ticket&#39;\np9\nL25L\nsS&#39;id&#39;\np10\nL33804L\nsb.&quot;</div></td>
          </tr>
        
      </tbody>
    </table>
  
  <h3 id="files-info">FILES</h3>
  
    <p>No FILES data</p>
  


  <h3 id="cookie-info">COOKIES</h3>
  
    <p>No cookie data</p>
  

  <h3 id="meta-info">META</h3>
  <table class="req">
    <thead>
      <tr>
        <th>Variable</th>
        <th>Value</th>
      </tr>
    </thead>
    <tbody>
      
        <tr>
          <td>CONTENT_LENGTH</td>
          <td class="code"><div>&#39;696&#39;</div></td>
        </tr>
      
        <tr>
          <td>CONTENT_TYPE</td>
          <td class="code"><div>&#39;application/x-www-form-urlencoded&#39;</div></td>
        </tr>
      
        <tr>
          <td>DBUS_SESSION_BUS_ADDRESS</td>
          <td class="code"><div>&#39;unix:abstract=/tmp/dbus-EUTXVlyY4p,guid=b24e245dc2ad422ab77321344be15566&#39;</div></td>
        </tr>
      
        <tr>
          <td>DESKTOP_SESSION</td>
          <td class="code"><div>&#39;default&#39;</div></td>
        </tr>
      
        <tr>
          <td>DISPLAY</td>
          <td class="code"><div>&#39;:0.0&#39;</div></td>
        </tr>
      
        <tr>
          <td>DJANGO_SETTINGS_MODULE</td>
          <td class="code"><div>&#39;ps-site.settings&#39;</div></td>
        </tr>
      
        <tr>
          <td>GATEWAY_INTERFACE</td>
          <td class="code"><div>&#39;CGI/1.1&#39;</div></td>
        </tr>
      
        <tr>
          <td>GDMSESSION</td>
          <td class="code"><div>&#39;default&#39;</div></td>
        </tr>
      
        <tr>
          <td>GDM_LANG</td>
          <td class="code"><div>&#39;en_US.UTF-8&#39;</div></td>
        </tr>
      
        <tr>
          <td>GDM_XSERVER_LOCATION</td>
          <td class="code"><div>&#39;local&#39;</div></td>
        </tr>
      
        <tr>
          <td>GNOME_DESKTOP_SESSION_ID</td>
          <td class="code"><div>&#39;this-is-deprecated&#39;</div></td>
        </tr>
      
        <tr>
          <td>GNOME_KEYRING_PID</td>
          <td class="code"><div>&#39;3572&#39;</div></td>
        </tr>
      
        <tr>
          <td>GNOME_KEYRING_SOCKET</td>
          <td class="code"><div>&#39;/tmp/keyring-qVXMpf/socket&#39;</div></td>
        </tr>
      
        <tr>
          <td>GPG_AGENT_INFO</td>
          <td class="code"><div>&#39;/tmp/seahorse-QiTriV/S.gpg-agent:3750:1&#39;</div></td>
        </tr>
      
        <tr>
          <td>GTK_MODULES</td>
          <td class="code"><div>&#39;canberra-gtk-module&#39;</div></td>
        </tr>
      
        <tr>
          <td>HOME</td>
          <td class="code"><div>&#39;/home/sol&#39;</div></td>
        </tr>
      
        <tr>
          <td>HTTP_ACCEPT</td>
          <td class="code"><div>&#39;text/plain&#39;</div></td>
        </tr>
      
        <tr>
          <td>HTTP_ACCEPT_ENCODING</td>
          <td class="code"><div>&#39;identity&#39;</div></td>
        </tr>
      
        <tr>
          <td>HTTP_HOST</td>
          <td class="code"><div>&#39;10.2.0.159:8000&#39;</div></td>
        </tr>
      
        <tr>
          <td>LANG</td>
          <td class="code"><div>&#39;en_US.UTF-8&#39;</div></td>
        </tr>
      
        <tr>
          <td>LD_LIBRARY_PATH</td>
          <td class="code"><div>&#39;/media/storage/bin/eclipse-python/jre/lib/i386/client::/media/storage/bin/eclipse-python/jre/lib/i386::/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons&#39;</div></td>
        </tr>
      
        <tr>
          <td>LOGNAME</td>
          <td class="code"><div>&#39;sol&#39;</div></td>
        </tr>
      
        <tr>
          <td>MOZILLA_FIVE_HOME</td>
          <td class="code"><div>&#39;/usr/lib/xulrunner-addons&#39;</div></td>
        </tr>
      
        <tr>
          <td>NLSPATH</td>
          <td class="code"><div>&#39;/usr/dt/lib/nls/msg/%L/%N.cat&#39;</div></td>
        </tr>
      
        <tr>
          <td>ORBIT_SOCKETDIR</td>
          <td class="code"><div>&#39;/tmp/orbit-sol&#39;</div></td>
        </tr>
      
        <tr>
          <td>PATH</td>
          <td class="code"><div>&#39;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games&#39;</div></td>
        </tr>
      
        <tr>
          <td>PATH_INFO</td>
          <td class="code"><div>u&#39;/rest/unit&#39;</div></td>
        </tr>
      
        <tr>
          <td>PWD</td>
          <td class="code"><div>&#39;/home/sol&#39;</div></td>
        </tr>
      
        <tr>
          <td>PYTHONPATH</td>
          <td class="code"><div>&#39;/home/sol/i-dev/pythonstrike/ps-site:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode:/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages&#39;</div></td>
        </tr>
      
        <tr>
          <td>QUERY_STRING</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>REMOTE_ADDR</td>
          <td class="code"><div>&#39;10.2.0.159&#39;</div></td>
        </tr>
      
        <tr>
          <td>REMOTE_HOST</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>REQUEST_METHOD</td>
          <td class="code"><div>&#39;POST&#39;</div></td>
        </tr>
      
        <tr>
          <td>SCRIPT_NAME</td>
          <td class="code"><div>u&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>SERVER_NAME</td>
          <td class="code"><div>&#39;relay&#39;</div></td>
        </tr>
      
        <tr>
          <td>SERVER_PORT</td>
          <td class="code"><div>&#39;8000&#39;</div></td>
        </tr>
      
        <tr>
          <td>SERVER_PROTOCOL</td>
          <td class="code"><div>&#39;HTTP/1.1&#39;</div></td>
        </tr>
      
        <tr>
          <td>SERVER_SOFTWARE</td>
          <td class="code"><div>&#39;WSGIServer/0.1 Python/2.6.2&#39;</div></td>
        </tr>
      
        <tr>
          <td>SESSION_MANAGER</td>
          <td class="code"><div>&#39;local/relay:/tmp/.ICE-unix/3592&#39;</div></td>
        </tr>
      
        <tr>
          <td>SHELL</td>
          <td class="code"><div>&#39;/bin/bash&#39;</div></td>
        </tr>
      
        <tr>
          <td>SSH_AGENT_PID</td>
          <td class="code"><div>&#39;3727&#39;</div></td>
        </tr>
      
        <tr>
          <td>SSH_AUTH_SOCK</td>
          <td class="code"><div>&#39;/tmp/ssh-GEvcaV3592/agent.3592&#39;</div></td>
        </tr>
      
        <tr>
          <td>TZ</td>
          <td class="code"><div>&#39;Russia/Moscow&#39;</div></td>
        </tr>
      
        <tr>
          <td>USER</td>
          <td class="code"><div>&#39;sol&#39;</div></td>
        </tr>
      
        <tr>
          <td>USERNAME</td>
          <td class="code"><div>&#39;sol&#39;</div></td>
        </tr>
      
        <tr>
          <td>WINDOWPATH</td>
          <td class="code"><div>&#39;7&#39;</div></td>
        </tr>
      
        <tr>
          <td>XAUTHORITY</td>
          <td class="code"><div>&#39;/home/sol/.Xauthority&#39;</div></td>
        </tr>
      
        <tr>
          <td>XDG_DATA_DIRS</td>
          <td class="code"><div>&#39;/usr/local/share/:/usr/share/:/usr/share/gdm/&#39;</div></td>
        </tr>
      
        <tr>
          <td>XDG_SESSION_COOKIE</td>
          <td class="code"><div>&#39;49df87b39767a905dc4304d54aa7400f-1273058661.221270-411781267&#39;</div></td>
        </tr>
      
        <tr>
          <td>XFILESEARCHPATH</td>
          <td class="code"><div>&#39;/usr/dt/app-defaults/%L/Dt&#39;</div></td>
        </tr>
      
        <tr>
          <td>wsgi.errors</td>
          <td class="code"><div>&lt;open file &#39;&lt;stderr&gt;&#39;, mode &#39;w&#39; at 0x7f41f15e1140&gt;</div></td>
        </tr>
      
        <tr>
          <td>wsgi.file_wrapper</td>
          <td class="code"><div>&lt;class &#39;django.core.servers.basehttp.FileWrapper&#39;&gt;</div></td>
        </tr>
      
        <tr>
          <td>wsgi.input</td>
          <td class="code"><div>&lt;socket._fileobject object at 0x2701c08&gt;</div></td>
        </tr>
      
        <tr>
          <td>wsgi.multiprocess</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>wsgi.multithread</td>
          <td class="code"><div>True</div></td>
        </tr>
      
        <tr>
          <td>wsgi.run_once</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>wsgi.url_scheme</td>
          <td class="code"><div>&#39;http&#39;</div></td>
        </tr>
      
        <tr>
          <td>wsgi.version</td>
          <td class="code"><div>(1, 0)</div></td>
        </tr>
      
    </tbody>
  </table>

  <h3 id="settings-info">Settings</h3>
  <h4>Using settings module <code>ps-site.settings</code></h4>
  <table class="req">
    <thead>
      <tr>
        <th>Setting</th>
        <th>Value</th>
      </tr>
    </thead>
    <tbody>
      
        <tr>
          <td>ABSOLUTE_URL_OVERRIDES</td>
          <td class="code"><div>{}</div></td>
        </tr>
      
        <tr>
          <td>ADMINS</td>
          <td class="code"><div>((&#39;sol&#39;, &#39;sol@dstu.edu.ru&#39;),)</div></td>
        </tr>
      
        <tr>
          <td>ADMIN_FOR</td>
          <td class="code"><div>()</div></td>
        </tr>
      
        <tr>
          <td>ADMIN_MEDIA_PREFIX</td>
          <td class="code"><div>&#39;/media/&#39;</div></td>
        </tr>
      
        <tr>
          <td>ALLOWED_INCLUDE_ROOTS</td>
          <td class="code"><div>()</div></td>
        </tr>
      
        <tr>
          <td>APPEND_SLASH</td>
          <td class="code"><div>True</div></td>
        </tr>
      
        <tr>
          <td>AUTHENTICATION_BACKENDS</td>
          <td class="code"><div>(&#39;django.contrib.auth.backends.ModelBackend&#39;,)</div></td>
        </tr>
      
        <tr>
          <td>AUTH_PROFILE_MODULE</td>
          <td class="code"><div>&#39;main.person&#39;</div></td>
        </tr>
      
        <tr>
          <td>BANNED_IPS</td>
          <td class="code"><div>()</div></td>
        </tr>
      
        <tr>
          <td>CACHE_BACKEND</td>
          <td class="code"><div>&#39;locmem://&#39;</div></td>
        </tr>
      
        <tr>
          <td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>CACHE_MIDDLEWARE_SECONDS</td>
          <td class="code"><div>600</div></td>
        </tr>
      
        <tr>
          <td>COMMENTS_ALLOW_PROFANITIES</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>COMMENTS_BANNED_USERS_GROUP</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>COMMENTS_FIRST_FEW</td>
          <td class="code"><div>0</div></td>
        </tr>
      
        <tr>
          <td>COMMENTS_MODERATORS_GROUP</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>COMMENTS_SKETCHY_USERS_GROUP</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_DOMAIN</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_NAME</td>
          <td class="code"><div>&#39;csrftoken&#39;</div></td>
        </tr>
      
        <tr>
          <td>CSRF_FAILURE_VIEW</td>
          <td class="code"><div>&#39;django.views.csrf.csrf_failure&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATABASES</td>
          <td class="code"><div>{&#39;default&#39;: {&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
             &#39;HOST&#39;: &#39;&#39;,
             &#39;NAME&#39;: &#39;pythonstrike&#39;,
             &#39;OPTIONS&#39;: {},
             &#39;PASSWORD&#39;: &#39;********************&#39;,
             &#39;PORT&#39;: &#39;&#39;,
             &#39;TEST_CHARSET&#39;: None,
             &#39;TEST_COLLATION&#39;: None,
             &#39;TEST_MIRROR&#39;: None,
             &#39;TEST_NAME&#39;: None,
             &#39;TIME_ZONE&#39;: &#39;Russia/Moscow&#39;,
             &#39;USER&#39;: &#39;root&#39;}}</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_ENGINE</td>
          <td class="code"><div>&#39;mysql&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_HOST</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_NAME</td>
          <td class="code"><div>&#39;pythonstrike&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_OPTIONS</td>
          <td class="code"><div>{}</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_PASSWORD</td>
          <td class="code"><div>&#39;********************&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_PORT</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_ROUTERS</td>
          <td class="code"><div>[]</div></td>
        </tr>
      
        <tr>
          <td>DATABASE_USER</td>
          <td class="code"><div>&#39;root&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATETIME_FORMAT</td>
          <td class="code"><div>&#39;N j, Y, P&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATETIME_INPUT_FORMATS</td>
          <td class="code"><div>(&#39;%Y-%m-%d %H:%M:%S&#39;,
 &#39;%Y-%m-%d %H:%M&#39;,
 &#39;%Y-%m-%d&#39;,
 &#39;%m/%d/%Y %H:%M:%S&#39;,
 &#39;%m/%d/%Y %H:%M&#39;,
 &#39;%m/%d/%Y&#39;,
 &#39;%m/%d/%y %H:%M:%S&#39;,
 &#39;%m/%d/%y %H:%M&#39;,
 &#39;%m/%d/%y&#39;)</div></td>
        </tr>
      
        <tr>
          <td>DATE_FORMAT</td>
          <td class="code"><div>&#39;N j, Y&#39;</div></td>
        </tr>
      
        <tr>
          <td>DATE_INPUT_FORMATS</td>
          <td class="code"><div>(&#39;%Y-%m-%d&#39;,
 &#39;%m/%d/%Y&#39;,
 &#39;%m/%d/%y&#39;,
 &#39;%b %d %Y&#39;,
 &#39;%b %d, %Y&#39;,
 &#39;%d %b %Y&#39;,
 &#39;%d %b, %Y&#39;,
 &#39;%B %d %Y&#39;,
 &#39;%B %d, %Y&#39;,
 &#39;%d %B %Y&#39;,
 &#39;%d %B, %Y&#39;)</div></td>
        </tr>
      
        <tr>
          <td>DEBUG</td>
          <td class="code"><div>True</div></td>
        </tr>
      
        <tr>
          <td>DEBUG_PROPAGATE_EXCEPTIONS</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>DECIMAL_SEPARATOR</td>
          <td class="code"><div>&#39;.&#39;</div></td>
        </tr>
      
        <tr>
          <td>DEFAULT_CHARSET</td>
          <td class="code"><div>&#39;utf-8&#39;</div></td>
        </tr>
      
        <tr>
          <td>DEFAULT_CONTENT_TYPE</td>
          <td class="code"><div>&#39;text/html&#39;</div></td>
        </tr>
      
        <tr>
          <td>DEFAULT_FILE_STORAGE</td>
          <td class="code"><div>&#39;django.core.files.storage.FileSystemStorage&#39;</div></td>
        </tr>
      
        <tr>
          <td>DEFAULT_FROM_EMAIL</td>
          <td class="code"><div>&#39;webmaster@localhost&#39;</div></td>
        </tr>
      
        <tr>
          <td>DEFAULT_INDEX_TABLESPACE</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>DEFAULT_TABLESPACE</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>DISALLOWED_USER_AGENTS</td>
          <td class="code"><div>()</div></td>
        </tr>
      
        <tr>
          <td>EMAIL_BACKEND</td>
          <td class="code"><div>&#39;django.core.mail.backends.smtp.EmailBackend&#39;</div></td>
        </tr>
      
        <tr>
          <td>EMAIL_HOST</td>
          <td class="code"><div>&#39;localhost&#39;</div></td>
        </tr>
      
        <tr>
          <td>EMAIL_HOST_PASSWORD</td>
          <td class="code"><div>&#39;********************&#39;</div></td>
        </tr>
      
        <tr>
          <td>EMAIL_HOST_USER</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>EMAIL_PORT</td>
          <td class="code"><div>25</div></td>
        </tr>
      
        <tr>
          <td>EMAIL_SUBJECT_PREFIX</td>
          <td class="code"><div>&#39;[Django] &#39;</div></td>
        </tr>
      
        <tr>
          <td>EMAIL_USE_TLS</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>FILE_CHARSET</td>
          <td class="code"><div>&#39;utf-8&#39;</div></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_HANDLERS</td>
          <td class="code"><div>(&#39;django.core.files.uploadhandler.MemoryFileUploadHandler&#39;,
 &#39;django.core.files.uploadhandler.TemporaryFileUploadHandler&#39;)</div></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td>
          <td class="code"><div>10737418240</div></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_PERMISSIONS</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_TEMP_DIR</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>FIRST_DAY_OF_WEEK</td>
          <td class="code"><div>0</div></td>
        </tr>
      
        <tr>
          <td>FIXTURE_DIRS</td>
          <td class="code"><div>()</div></td>
        </tr>
      
        <tr>
          <td>FORCE_SCRIPT_NAME</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>FORMAT_MODULE_PATH</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>IGNORABLE_404_ENDS</td>
          <td class="code"><div>(&#39;mail.pl&#39;, &#39;mailform.pl&#39;, &#39;mail.cgi&#39;, &#39;mailform.cgi&#39;, &#39;favicon.ico&#39;, &#39;.php&#39;)</div></td>
        </tr>
      
        <tr>
          <td>IGNORABLE_404_STARTS</td>
          <td class="code"><div>(&#39;/cgi-bin/&#39;, &#39;/_vti_bin&#39;, &#39;/_vti_inf&#39;)</div></td>
        </tr>
      
        <tr>
          <td>INSTALLED_APPS</td>
          <td class="code"><div>[&#39;django.contrib.auth&#39;,
 &#39;django.contrib.admin&#39;,
 &#39;django.contrib.contenttypes&#39;,
 &#39;django.contrib.sessions&#39;,
 &#39;django.contrib.sites&#39;,
 &#39;main&#39;,
 &#39;captcha&#39;]</div></td>
        </tr>
      
        <tr>
          <td>INTERNAL_IPS</td>
          <td class="code"><div>()</div></td>
        </tr>
      
        <tr>
          <td>LANGUAGES</td>
          <td class="code"><div>((&#39;ar&#39;, &#39;Arabic&#39;),
 (&#39;bg&#39;, &#39;Bulgarian&#39;),
 (&#39;bn&#39;, &#39;Bengali&#39;),
 (&#39;bn&#39;, &#39;Bosnian&#39;),
 (&#39;ca&#39;, &#39;Catalan&#39;),
 (&#39;cs&#39;, &#39;Czech&#39;),
 (&#39;cy&#39;, &#39;Welsh&#39;),
 (&#39;da&#39;, &#39;Danish&#39;),
 (&#39;de&#39;, &#39;German&#39;),
 (&#39;el&#39;, &#39;Greek&#39;),
 (&#39;en&#39;, &#39;English&#39;),
 (&#39;es&#39;, &#39;Spanish&#39;),
 (&#39;es-ar&#39;, &#39;Argentinean Spanish&#39;),
 (&#39;et&#39;, &#39;Estonian&#39;),
 (&#39;eu&#39;, &#39;Basque&#39;),
 (&#39;fa&#39;, &#39;Persian&#39;),
 (&#39;fi&#39;, &#39;Finnish&#39;),
 (&#39;fr&#39;, &#39;French&#39;),
 (&#39;fy-nl&#39;, &#39;Frisian&#39;),
 (&#39;ga&#39;, &#39;Irish&#39;),
 (&#39;gl&#39;, &#39;Galician&#39;),
 (&#39;he&#39;, &#39;Hebrew&#39;),
 (&#39;hi&#39;, &#39;Hindi&#39;),
 (&#39;hr&#39;, &#39;Croatian&#39;),
 (&#39;hu&#39;, &#39;Hungarian&#39;),
 (&#39;is&#39;, &#39;Icelandic&#39;),
 (&#39;it&#39;, &#39;Italian&#39;),
 (&#39;ja&#39;, &#39;Japanese&#39;),
 (&#39;ka&#39;, &#39;Georgian&#39;),
 (&#39;km&#39;, &#39;Khmer&#39;),
 (&#39;kn&#39;, &#39;Kannada&#39;),
 (&#39;ko&#39;, &#39;Korean&#39;),
 (&#39;lt&#39;, &#39;Lithuanian&#39;),
 (&#39;lv&#39;, &#39;Latvian&#39;),
 (&#39;mk&#39;, &#39;Macedonian&#39;),
 (&#39;nl&#39;, &#39;Dutch&#39;),
 (&#39;no&#39;, &#39;Norwegian&#39;),
 (&#39;pl&#39;, &#39;Polish&#39;),
 (&#39;pt&#39;, &#39;Portuguese&#39;),
 (&#39;pt-br&#39;, &#39;Brazilian Portuguese&#39;),
 (&#39;ro&#39;, &#39;Romanian&#39;),
 (&#39;ru&#39;, &#39;Russian&#39;),
 (&#39;sk&#39;, &#39;Slovak&#39;),
 (&#39;sl&#39;, &#39;Slovenian&#39;),
 (&#39;sq&#39;, &#39;Albanian&#39;),
 (&#39;sr&#39;, &#39;Serbian&#39;),
 (&#39;sr-latn&#39;, &#39;Serbian Latin&#39;),
 (&#39;sv&#39;, &#39;Swedish&#39;),
 (&#39;ta&#39;, &#39;Tamil&#39;),
 (&#39;te&#39;, &#39;Telugu&#39;),
 (&#39;th&#39;, &#39;Thai&#39;),
 (&#39;tr&#39;, &#39;Turkish&#39;),
 (&#39;uk&#39;, &#39;Ukrainian&#39;),
 (&#39;zh-cn&#39;, &#39;Simplified Chinese&#39;),
 (&#39;zh-tw&#39;, &#39;Traditional Chinese&#39;))</div></td>
        </tr>
      
        <tr>
          <td>LANGUAGES_BIDI</td>
          <td class="code"><div>(&#39;he&#39;, &#39;ar&#39;, &#39;fa&#39;)</div></td>
        </tr>
      
        <tr>
          <td>LANGUAGE_CODE</td>
          <td class="code"><div>&#39;en-us&#39;</div></td>
        </tr>
      
        <tr>
          <td>LANGUAGE_COOKIE_NAME</td>
          <td class="code"><div>&#39;django_language&#39;</div></td>
        </tr>
      
        <tr>
          <td>LOCALE_PATHS</td>
          <td class="code"><div>()</div></td>
        </tr>
      
        <tr>
          <td>LOGIN_REDIRECT_URL</td>
          <td class="code"><div>&#39;/accounts/profile/&#39;</div></td>
        </tr>
      
        <tr>
          <td>LOGIN_URL</td>
          <td class="code"><div>&#39;/&#39;</div></td>
        </tr>
      
        <tr>
          <td>LOGOUT_URL</td>
          <td class="code"><div>&#39;/accounts/logout/&#39;</div></td>
        </tr>
      
        <tr>
          <td>MANAGERS</td>
          <td class="code"><div>((&#39;sol&#39;, &#39;sol@dstu.edu.ru&#39;),)</div></td>
        </tr>
      
        <tr>
          <td>MEDIA_ROOT</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>MEDIA_URL</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>MESSAGE_STORAGE</td>
          <td class="code"><div>&#39;django.contrib.messages.storage.user_messages.LegacyFallbackStorage&#39;</div></td>
        </tr>
      
        <tr>
          <td>MIDDLEWARE_CLASSES</td>
          <td class="code"><div>(&#39;django.middleware.common.CommonMiddleware&#39;,
 &#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
 &#39;django.contrib.auth.middleware.AuthenticationMiddleware&#39;)</div></td>
        </tr>
      
        <tr>
          <td>MONTH_DAY_FORMAT</td>
          <td class="code"><div>&#39;F j&#39;</div></td>
        </tr>
      
        <tr>
          <td>NODE_LINK</td>
          <td class="code"><div>&#39;localhost:8000&#39;</div></td>
        </tr>
      
        <tr>
          <td>NODE_LINK_INTERNAL</td>
          <td class="code"><div>&#39;localhost:8000&#39;</div></td>
        </tr>
      
        <tr>
          <td>NUMBER_GROUPING</td>
          <td class="code"><div>0</div></td>
        </tr>
      
        <tr>
          <td>PASSWORD_RESET_TIMEOUT_DAYS</td>
          <td class="code"><div>&#39;********************&#39;</div></td>
        </tr>
      
        <tr>
          <td>POINT</td>
          <td class="code"><div>100</div></td>
        </tr>
      
        <tr>
          <td>PREPEND_WWW</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>PROFANITIES_LIST</td>
          <td class="code"><div>&#39;********************&#39;</div></td>
        </tr>
      
        <tr>
          <td>ROOT</td>
          <td class="code"><div>&#39;/home/sol/i-dev/pythonstrike/ps-site/&#39;</div></td>
        </tr>
      
        <tr>
          <td>ROOT_URLCONF</td>
          <td class="code"><div>&#39;urls&#39;</div></td>
        </tr>
      
        <tr>
          <td>SECRET_KEY</td>
          <td class="code"><div>&#39;********************&#39;</div></td>
        </tr>
      
        <tr>
          <td>SEND_BROKEN_LINK_EMAILS</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>SERVER_EMAIL</td>
          <td class="code"><div>&#39;root@localhost&#39;</div></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_AGE</td>
          <td class="code"><div>1209600</div></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_DOMAIN</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_NAME</td>
          <td class="code"><div>&#39;sessionid&#39;</div></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_PATH</td>
          <td class="code"><div>&#39;/&#39;</div></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_SECURE</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>SESSION_ENGINE</td>
          <td class="code"><div>&#39;django.contrib.sessions.backends.db&#39;</div></td>
        </tr>
      
        <tr>
          <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>SESSION_FILE_PATH</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>SESSION_SAVE_EVERY_REQUEST</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>SETTINGS_MODULE</td>
          <td class="code"><div>&#39;ps-site.settings&#39;</div></td>
        </tr>
      
        <tr>
          <td>SHORT_DATETIME_FORMAT</td>
          <td class="code"><div>&#39;m/d/Y P&#39;</div></td>
        </tr>
      
        <tr>
          <td>SHORT_DATE_FORMAT</td>
          <td class="code"><div>&#39;m/d/Y&#39;</div></td>
        </tr>
      
        <tr>
          <td>SITE_ID</td>
          <td class="code"><div>1</div></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_CONTEXT_PROCESSORS</td>
          <td class="code"><div>(&#39;django.core.context_processors.auth&#39;,
 &#39;django.core.context_processors.debug&#39;,
 &#39;django.core.context_processors.i18n&#39;,
 &#39;django.core.context_processors.media&#39;,
 &#39;django.contrib.messages.context_processors.messages&#39;)</div></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_DEBUG</td>
          <td class="code"><div>True</div></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_DIRS</td>
          <td class="code"><div>(&#39;/home/sol/i-dev/pythonstrike/ps-site/templates/&#39;,)</div></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_LOADERS</td>
          <td class="code"><div>(&#39;django.template.loaders.filesystem.load_template_source&#39;,
 &#39;django.template.loaders.app_directories.load_template_source&#39;)</div></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_STRING_IF_INVALID</td>
          <td class="code"><div>&#39;&#39;</div></td>
        </tr>
      
        <tr>
          <td>TEST_DATABASE_CHARSET</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>TEST_DATABASE_COLLATION</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>TEST_DATABASE_NAME</td>
          <td class="code"><div>None</div></td>
        </tr>
      
        <tr>
          <td>TEST_RUNNER</td>
          <td class="code"><div>&#39;django.test.simple.DjangoTestSuiteRunner&#39;</div></td>
        </tr>
      
        <tr>
          <td>THOUSAND_SEPARATOR</td>
          <td class="code"><div>&#39;,&#39;</div></td>
        </tr>
      
        <tr>
          <td>TIME_FORMAT</td>
          <td class="code"><div>&#39;P&#39;</div></td>
        </tr>
      
        <tr>
          <td>TIME_INPUT_FORMATS</td>
          <td class="code"><div>(&#39;%H:%M:%S&#39;, &#39;%H:%M&#39;)</div></td>
        </tr>
      
        <tr>
          <td>TIME_ZONE</td>
          <td class="code"><div>&#39;Russia/Moscow&#39;</div></td>
        </tr>
      
        <tr>
          <td>TRANSACTIONS_MANAGED</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>URL_VALIDATOR_USER_AGENT</td>
          <td class="code"><div>&#39;Django/1.2 beta 1 (http://www.djangoproject.com)&#39;</div></td>
        </tr>
      
        <tr>
          <td>USE_ETAGS</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>USE_I18N</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>USE_L10N</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>USE_THOUSAND_SEPARATOR</td>
          <td class="code"><div>False</div></td>
        </tr>
      
        <tr>
          <td>YEAR_MONTH_FORMAT</td>
          <td class="code"><div>&#39;F Y&#39;</div></td>
        </tr>
      
    </tbody>
  </table>

</div>

<div id="explanation">
  <p>
    You're seeing this error because you have <code>DEBUG = True</code> in your
    Django settings file. Change that to <code>False</code>, and Django will
    display a standard 500 page.
  </p>
</div>
</body>
</html>
